import request from '@/utils/request.js'

export function getDrinkList(data){
	return request({
		url:'/record/drink/my/list',
		method:'get',
		data:data
	})
}

export function getDrinkListToday(data){
	return request({
		url:'/record/drink/list/today',
		method:'get',
		data:data
	})
}

export function addDrink(data){
	return request({
		url:'/record/drink',
		method:'post',
		data:data
	})
}

export function deleteDrink(data){
	return request({
		url:'/record/drink/'+data,
		method:'delete'
	})
}

export function getDrink(data){
	return request({
		url:'/record/drink/'+data,
		method:'get'
	})
}